MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: A Digital Developer is working on a multi-site realm. A new site requires a different layout for the account landing page. The business logic and data model remain the same. The existing code is in AccountControl.js and accountlanding.isml in the app_storefront cartridge. The app_storefront cartridge contains code for all other business functions. The cartridge path for the new site is currently int_cybersource:int_paypal:app_storefront.The Developer creates a new cartridge named app_newsite that contains only the accountlanding.isml template for the new site.Which modification should be made to the new cartridge path?
Question2: A Digital Developer is working in a sandbox on a site named test-site using the domain test.demandware.net. The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.By default, which URL format is a proper Open Commerce API for Sandbox?
Question3: Below is a form definition snippet from the newsletter.xml file:<?xml version="1.0"?><form xmlns=http://www.demandware.com/xml/form/2008-04-15><field formid="email" lavel="Email" type="String" mandatory="True" max-length="50" /></form>Which line of code creates a JSON object to contain the form data?
Question4: A client uses tax tables in Business Manager to calculate tax. They recently started shipping to a new country, Italy, and the taxi s not being calculated correctly on the Storefront What is the likely problem?
Question5: A Digital Developer has a new requirement to disable the "Discover" credit card type for all checkouts.What does the Developer need to change in Business Manager to fulfill this requirement?
Question6: A Digital Developer is tasked with setting up a new Digital Server Connection using UX Studio in their sandbox.Which three items are required to accomplish this task? (Choose three.)
Question7: A developer working on a multi country site is asked to store country specific data that drives the creation of a country selector. Examples of the data stored are:* Pricebook to be used* Image URL for country flagThe data used in staging also applies in production, but only for this site.Which approach should the developer take to implement these requirements?
Question8: Given the following snippet:* Server.append( 'Show' , function (req, res, next) )According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the response using a controller?Choose 2 answers
Question9: The developer has been given the following business requirement:The shipping method, "Free Standard Ground Shipping" has an exclusion for products with 'category equals or is child of electronics-televisions.' The marketing department has scheduled a sale offering a "Free Standard Ground Shipping" method for brand XyzTv televisions for the next 3 months.What method accomplishes this while following best practices'
Question10: A developer wants to add a link to the My Account Page.What is the correct code to accomplish this?
Question11: A Digital Developer is implementing an Open Commerce API call to add products to a basket. Given the following resource configuration:Which modification allows the requests to successfully execute?
Question12: A developer is using the Script Debugger to troubleshoot an issue. They observe that the debugger is not able to resolve a specific breakpoint on one of the scripts. What is a possible reason for this issue?
Question13: A business user wants to add a link to a content page from within the body of another content asset. The target content asset ID is: terms-and-conditions.Which link function generates the correct link?
Question14: A developer is given the requirement to add a step to the existing business logic of the registration process. How should the developer modify the route that handles the customer registration?
Question15: Given a job step configured in the steptype.json, a developer needs to add a custom status code"No_FILES_FOUND".Which code snippet will complete the requirement?
Question16: A developer wants to embed a link to a content page from within the body of another content asset. the target content asset ID is: about-us Which option represents the correct format to use?
Question17: Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.To which file should the developer add German string values?
Question18: A merchant requires that an existing section of the Site become editable from the Business Manager, so that they can modify it independently of the developer.Which of these is an important factor for a developer to consider when choosing the appropriate solution between a content slot and a Page Designer component?
Question19: A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used in the application and notices that there are too many instances of unavailability.Which two solutions are possible options to reduce the unavailability of the service? (Choose two.)
Question20: Given the sandbox with:* Service configured and assigned to its profile and credential* A code version that uses that serviceAnd given the requirement to limit the number of success or error calls the code can perform to a restricted number of calls per second.Which configuration should the developer perform?
Question21: A Digital Developer selects "Show Orderable Products Only" in the Search > Search Preferences Business Manager module.Which business goal does this accomplish?
Question22: A merchant is selling a new product line of televisions. In order to deliver a good customer experience, the merchandising team wants the screen size to be incorporated into the search and navigation journey.Which two things can the developer do to facilitate this for them?Choose 2 answers
Question23: A merchant has a new requirement to accept American Express credit cards on its Storefront. A credit card payment method already exists.Which step must a developer take in Business Manager to achieve this?
Question24: A Digital Developer has identified that the code segment below is causing performance problems.What should the Developer do to improve the code?
Question25: A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all items.How can a developer use Business Manager to ensure that the gift vouchers are always available?
Question26: A client sells its product in single-brand stores as well as in multi-brand stores. When shown in the store locator list, the client wants the single-brand stores to have a particular background color to highlight them.Which Business Manager action should be completed to allow the developer to apply different styling to the single-brand stores?
Question27: There are three logging categories: category1, category1.eu, and category1.us.In Business Manager, category1 is enabled for WARN level and no other categories are configured. All custom log targets are enabled.The code segment below executes.What is the result'
Question28: A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.Which three things should the Digital Developer verify to ensure the cartridges are uploaded? (Choose three.)
Question29: A developer has a sandbox configured with a service and its profile and credential. Now there is a requirement to allow changes to the service URL manually from the sandbox.Which B2C feature should the developer use to achieve the request?
Question30: A Digital Developer has detected storefront pages being rendered with an error message. After inspecting the log files, the Developer discovered that an enforced quota is being exceeded.What action should the Developer take to stop the quota violation?
Question31: Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.Which two additional steps should the developer take to troubleshoot this problem?Choose 2 answers
Question32: The Home-Show route uses this middleware chain:The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:Assuming the code is correct on both functions, what is the expected result?
Question33: A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.Which three things should the Digital Developer verify to ensure the cartridges are uploaded? (Choose three.)
Question34: A developer is asked to create a controller endpoint that will be used in a client-side AJAX request. Its purposes is to display updated information to the user when the request is completed, without otherwise modifying the appearance of the current page.According to SFRA practices, which method best supports this objective?
Question35: A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.Which cartridge path meets the project requirements?
Question36: A client has two B2C Commerce sites in the same instance: one for the U.S market, the other for the European market. The products they make are sold with different safety certificates based-on the world location.For example, they sell a smartphone with certificate A in the U.S and certificate B in Europe, a hairdryer with certificate C in the U.S and certificate D in Europe, and more.How should a developer allow the merchant to display the appropriate certification logo in the produce to details page, depending on the customer's location?
Question37: Given the file structure below, which ISML method call renders the customLandingPage template?
Question38: The developer created a new Storefront category in storefront-catalog-m-en, but when viewing the Storefront site, the category is not visible.What are two possible reasons?
Question39: Given the code snippet aboce, what should be added after this code so it can be used for page component display?
Question40: A client has custom object definition and requirement that occasional data changes in staging also need to exist in production, Which task should the developer perform to meet these requirements when setting up the custom object?
Question41: A developer uses the call() instance method of dw.svc.Service to invoke a web service and implemented the callback methods defined by the dw.avc.ServiceCaliback class.Which callback method is required only when invoking a SOAP service?
Question42: A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on the pipeline dictionary with the name myProduct.Which code sample will achieve this?
Question43: A developer needs to render a Page Designer page in JSON format. What is the correct syntax?
Question44: The developer needs to add custom category debug logging into the "contact'' script, to ensure that a third-party service call responds as expected.Assuming that the logging configurations for the contact category are correctly in place, which line of code should the developer add in the 06 placeholder to meet this requirement?A)B)C)
Question45: A Newsletter controller contains the following route:Server.post('Subscribe', function (req,res,next){var newsletterForm = server.forms.getForm('newsletter');var CustomObjectMgr = require('dw/object/CustomObjectMgr'); if(newsletterForm.valid){ try{ var CustomObject = CustomObjectMgr.createCustomObejct('NewsletterSubscription', newsletterform.email.value); CustomObject.custom.firstName = newsletterForm.fname.value; CustomObject.custom.lastName = newsletterForm.lname.value;-} catch(e){//Catch error here}}next();});Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template when the subscription form is correctly submitted?
Question46: A developer working on a simple web service integration is asked to add appropriate logging to allow future troubleshooting.According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?
Question47: A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page is cleaned.Given the above requirement, where should the developer create that partition in Business Manager?
Question48: A merchant has a requirement to render personalized content to n a category page via a Content Slot that targets VIP high-spending customers during a specific promotional period.Which two items should the developer create to achieve the specified requirements?Choose 2 answers:
Question49: Consider the following information:* A merchant has this three-tier category structure setup in the Storefront catalog:New Arrivals > Women > Clothing* The category named Clothing has all the clothing items for Women and is merchandised.* A Search Refinement named Newness is correctly configured for the Clothing category.When a merchandiser views the Clothing category, the Search Refinement appears and Works as expected. However, the merchandiser does not see the Search Refinement when searching for Clothing via the Storefront search.What is the Reason?
Question50: Given a file in a plug-in cartridge with the following code:'use strict':Var base = module.superModule;Function applyCustomCache (req,res,next){res.CachePeriod = 6; //eslint-disable-line no-param-reassignres.cachePeriodUnit = 'hours') //eslint-disable-line no-param-reassignnext();}Module.exports = base;Module.exports.applyCustomCache = applyCustomCache;What does this code extend?
Question51: A Digital Developer noticed that cartridges in their workspace are NOT executing. The Developer confirms that the cartridges are uploaded to the B2C Commerce server connection's target version directory.Which action potentially solves this problem?
Question52: A client wants to differentiate their monobrand stores with a special icon when shown in the store locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.How should the developer follow SFRA best practices to expose this data for rendering?
Question53: Which object type can a developer import using the Merchant Tools > Import $ Export module in Business Manager?
Question54: Multiple shoppers report slow performance on the Product Details Page.Which tool can a developer use to view average response times for the Product-Detail controller route?
Question55: In Log Center, a developer notes a number of Cross Site Request Forgery (CSRF) log entries. The developer knows that this happens when a CSRF token is either not found or is invalid, and is working to remedy the situation as soon as possible.Which two courses of action might solve the problem?Choose 2 answers
Question56: Universal Containers wants to associate a region code value with an order to indicate the general area of its destination. This region code must be accessible whenever the order history is displayed.What is required to accomplish this?
Question57: Which method is efficient and scalable because it uses the product search index rather than searching the database?
Question58: Server.get('Show', consentTracking.consent, cache.applyDefaultCache, function (req,res,next){ Var Site = require('dw/system/Syte"); Var pageMetaHelpter = require('*/cartridge/scripts/helpers/pageMetaHelper'); pageMetaHelpter.setPageMetaTags(req.pageMetaData, Site.current); res.render('/home/homePage'); Missing code here}, pageMetadata.computedPageMetadata);The controller endpoint code snippet above does not work.Which line of code should the developer use to replace line 6 and correct the problem?
Question59: Given a NewsletterSubscription custom object that has a key attribute named email of type String, what is the correct syntax to create the NewsletterSubscription custom object and persist it to the database?
Question60: A developer needs to update the package.json file so that it points to the hock file for a cartridge, using the hooks keyword. Which snippets work correctly when added to the file?:
Question61: The client provides the system integrator with translation messages for the newly added "French" ("fr") locale.What is the correct folder to store the associated .properties files?
Question62: Which three operations should be done in a controller?Choose 3 answers
Question63: A developer has a sandbox with code to log a message during execution, and the following code:After the code executes, the developer does not see any log file with the message in the WebDAV folder. Which two tasks does the developer need to perform to correct this issue?Choose 2 answers